Before you begin the exercise, let's have a quick recap of
what you've learned so far. First, let's look at
the limitations of a monolithic approach in an
application development. With the monolithic approach, you can't use
different technologies together to build
an application, making this approach
highly inflexible. If there is an issue with
one feature of the system, then the entire
system doesn't work, making this approach
potentially unreliable. The complete system has to be
rebuilt every time the app needs to be updated making this approach
difficult to scale. You can't perform continuous
development as many features of an application cannot be built and deployed
at the same time. Development of applications
take a lot of time, making this approach slow. Advantages of using
microservices over a monolithic application
development approach. Microservices can be built
and managed independently and you can easily scale them out based on the
resources they need. Microservices take a lot of infrastructure risk out of
the project straight away. With the infrastructure
made almost invisible, microservice teams
can iterate quickly. Each developer on a team can
avoid getting tangled up in the underlying
infrastructure and focus on their piece
of the project. Microservices have their own load balancer
and execution environment to execute their
functionalities while capturing data in
their own databases. Finally, microservices
offer language and platform freedom so teams can choose the best
language for their job. Over-the-top media or OTT is no longer the future of entertainment but
is now the reality. With over 50 percent of North American
subscribe to Netflix, it's clear that consumers
love OTT content. OTT is the most popular form of entertainment today
across all age groups. All a consumer needs is a compatible device enabled with a good internet connection. An OTT media service is any online content
provider that offers streaming media as a
standalone product. An OTT conversation largely revolves around
video-on-demand. Any application or service that provides a product
over the internet while bypassing
traditional media services is an OTT application. Popular OTT applications for
video streaming are Netflix, Amazon Video, YouTube,
HBO, and so on. Showtime TV is a subscription
service that gives us commercial-free on-demand
access to Showtime TV programs. This streaming service is accessible and more
than 70 countries. Seeing the demand of
OTT applications, the team at OTTBiz
Private Limited, which is popular in providing software solutions in the
field of entertainment, has started with a
project to develop an OTT application for Showtime TV based on
the requirements shared by Showtime TV to provide
various services. The Showtime TV OTT
application will provide ad-free services to
all its registered users. The user needs to register with the application in order to
get additional services. In this section of the course, you'll perform an
exercise to implement backend service for the
OTT platform Showtime TV. The following task must be performed in the
practice exercise. In the first phase, to stay ahead in the
heavily competitive market, OTTBiz Private Limited
wants to quickly released the Showtime TV application to market with all the
required services, allowing users to use the additional features
of the application. Let's create these
multiple microservices for the application. The user must first register
with the application. The user must log in with credentials such as
ID and password. The user can access the features provided such as
adding products, deleting products, and so on. The user can implement
that discovery service. The user can implement the Application Programming
Interface or API Gateway. While performing the
practice exercise, you must ensure the following. The solution is developed based on boilerplate
code provided. The VS Code and
Node.js are installed. The required
dependencies express and Mongoose must be installed. The array model class object is used for
representing the data. A server is created to handle
the request and the program is executed using the command
npm start or Nodemon.